#ifndef STRING_H
#define STRING_H
#include <iostream>

class String{
	private:
	int length;
	char *sPtr;
	void setString(const char*);
	public:
		friend std::ostream& operator<<(std::ostream&,const String&);
		friend std::istream& operator>>(std::istream&,String&);
		String(const char * = " ");
		String(const String&);
		~String();
		const String& operator=(const String&);
		const String& operator!=(const String&);
		const String& operator +=(const String&);
		bool operator!()const;
		bool operator==(const String &)const;
		bool operator<(const String&)const;
		bool operator>(const String& right)const;
		bool operator!=(const String& right)const;
		bool operator <=(const String& right)const;
		bool operator >=(const String& right)const;
		char &operator[](int);
		char operator[](int)const;
		String operator()(int,int =0)const;
		bool remove(int,int=0);
		void cauta(char);
		int getLength()const;
};


#endif
